/*
 * File:   hcstrstream.h
 * Author: benoybose
 *
 * Created on May 18, 2012, 10:06 AM
 */

#ifndef HCSTRSTREAM_H
#define	HCSTRSTREAM_H

#include "hcstring.h"

typedef struct _hcstrstream
{
    int length;
    int position;
    int capacity;
    char* data;
} hcstrstream;

hcstrstream* hcstrstream_create();
void hcstrstream_write(hcstrstream* s, hcstring* text);
void hcstrstream_write_char(hcstrstream* s, char* text, int length);
hcstring* hcstrstream_read(hcstrstream* s);

#endif	/* HCSTRSTREAM_H */

